package com.xy.blog.core.international;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description: 国际化文件配置
 * @date 2020/3/13
 */
@Configuration
public class InternationalConfiguration {

    @Bean
    public LocaleResolver localeResolver() {
        return new NativeLocaleResolver();
    }
}
